package com.zzy.service;

import com.zzy.model.Catalog;

import java.util.List;

public interface CatalogService {

    public List<Catalog> getRootList();

    public List<Catalog> getByParentid(String parentid);

    public int save(Catalog model);

    public int update(Catalog model);

    public void delete( String id );

    public Catalog get(String id);

    /**当前目录下文件名字是否重复*/
    public boolean isExistName(String name,String parentid);

    /**保存的时候自动生成目录编码.
     *    * 编码规则
     * 1
     *  1-1
     *      1-1-1
     * 2
     *  2-1
     *  */
    public String getGenCode(String parentid);

}
